package cn.sccl.test.annotationaop;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.sccl.service.UserService;

/**
 * @author 饶爽
 * @time 2019年9月4日 下午9:40:13
 * @version 1.0.0
 * 类说明
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:cn/sccl/test/annotationaop/applicationContext.xml")
public class Demo {
    @Resource(name="userService")
    private UserService us;
    @Test
    public void fun1() {
        us.save();
    }
}
